From 30c33a20eed7025333d11b62c93f809f353654ed Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 9 Mar 2009 08:52:04 +0000 Subject: [PATCH] Don't show deleted user names --- includes/parser/Parser.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 33bfbd82fa..eeb06d4ff1 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -4638,9 +4638,8 @@ class Parser // if this template is subst: the revision id will be blank, // so just use the current user's name if( $this->mRevisionId ) { - $dbr = wfGetDB( DB_SLAVE ); - $revuser = $dbr->selectField( 'revision', 'rev_user_text', - array( 'rev_id' => $this->mRevisionId ), __METHOD__ ); + $revision = Revision::newFromId( $this->mRevisionId ); + $revuser = $revision->getUserText(); } else { global $wgUser; $revuser = $wgUser->getName(); -- 2.20.1